package ar.edu.utn.frsf.tpae.a2014.g03.persistence.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "usr")
@Inheritance(strategy = InheritanceType.JOINED)
public class Usuario extends TpaeEntity<Integer> {


	private String nickname;


	private String password;


	private String apellido;


	private String nombres;


    private String dni;


	private String cuit;


    private String cbu;


    private String telefono;

	@Id
	@Column(name = "usr_id")
	@SequenceGenerator(name = "SecuenciaUsuario", sequenceName = "seq_usr", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SecuenciaUsuario")
	@Override
	public Integer getId() {
		return id;
	}
	
	@Column(name = "usr_usr")
	public String getNickname() {
		return nickname;
	}
	
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
	@Column(name = "usr_pwd")
	public String getPassword() {
		return password;
	}
	

	public void setPassword(String password) {
		this.password = password;
	}
	
	@Column(name = "usr_ape")
	public String getApellido() {
		return apellido;
	}
	
	public void setApellido(String apellido) {
		this.apellido = apellido;
	}
	
	@Column(name = "usr_nom")
	public String getNombres() {
		return nombres;
	}
	
	public void setNombres(String nombres) {
		this.nombres = nombres;
	}
	
	@Column(name = "usr_dni")
	public String getDni() {
		return dni;
	}
	
	public void setDni(String dni) {
		this.dni = dni;
	}

	@Column(name = "usr_cui")
	public String getCuit() {
		return cuit;
	}

	public void setCuit(String cuit) {
		this.cuit = cuit;
	}

	@Column(name = "usr_cbu")
	public String getCbu() {
		return cbu;
	}
	
	public void setCbu(String cbu) {
		this.cbu = cbu;
	}

	@Column(name = "usr_tel")
	public String getTelefono() {
		return telefono;
	}
	
	public void setTelefono(String telefono) {
		this.telefono = telefono;
	}
		
}
